package com.psbc.task.service;

import com.psbc.task.dto.Score;
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;

import java.util.List;
import java.util.concurrent.Callable;

/**
 * @author:y022 25/06/2022 18:20
 * @description:
 */
@AllArgsConstructor
@NoArgsConstructor
public class QueryTask implements Callable<List<Score>> {
    private QueryMapper queryMapper;
    private List<Long> scoreLevel;

    @Override
    public List<Score> call() throws Exception {
        return queryMapper.queryList(scoreLevel);
    }
}
